package com.ken.business.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ken.business.demo.service.StudentService;
import com.ken.data.entity.demo.Student;
import com.ken.data.mapper.demo.dao.StudentDao;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 学生表(Student)表服务实现类
 *
 * @author makejava
 * @since 2021-10-04 12:21:32
 */
@Service
public class StudentServiceImpl extends ServiceImpl<StudentDao, Student> implements StudentService {

    @Async
    @Override
    public List<Student> list() {
        System.out.println("当前线程：" + Thread.currentThread().getName());
        return super.list();
    }
}
